/*

  Platform-specific definitions for the program

*/

#include <string.h>
#include <stdlib.h>

#ifndef _SPECS_H
#define _SPECS_H

// change these if your cpu stats file is elsewhere:
#define CPU_CUR_FILE "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq"

#define CPU_MAX_FILE "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq"

#define CPU_MIN_FILE "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq"

// the contents in those files reeeeally shouldn't be more than this.
// units in the above files are expressed in kHz, for example.
#define CPU_FILE_BUFF 20

// query commands
#define QUERY_COMMAND "cpupower frequency-set --max %ld --governor performance > /dev/null"

#endif
